import {request} from "./request";

//获取相关文章内容
export function getNote(path) {
    return request({
        url:`/note/${path}`,
        method:'get'
    })
}
//添加文章
export function addArticle(data) {
    return request({
        url:`/note/${data.path}`,
        method:'post',
        data:data
    })
}